﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using System.Web.Profile;
using System.Web.Security;
using MyBet.Web.Resources;
using System.Linq;
using ParieurPro.DAL.DatabaseModel;

namespace MyBet.Web
{
    ///// <summary>
    /////   RIA Services Domain Service that exposes methods for performing user
    /////   registrations.
    ///// </summary>
    //[EnableClientAccess]
    //public class CommentService : DomainService
    //{

    //    ///// <summary>
    //    ///// Return the number of tournaments created
    //    ///// </summary>
    //    ///// <returns></returns>
    //    //public List<CommentObject> GetComments(int tournamentId)
    //    //{
    //    //    using (MyBetDBEntities dbContext = new MyBetDBEntities())
    //    //    {
    //    //        List<CommentObject> retList = new List<CommentObject>();
    //    //        var query = (from comment in dbContext.Comments
    //    //                     where comment.TournamentId == tournamentId
    //    //                    select comment);
    //    //        IEnumerable<Comments> comments = query.ToList();
    //    //        foreach (Comments c in comments)
    //    //        {
    //    //            retList.Add(CommentObject.CopyFrom(c));
    //    //        }
    //    //        return retList;
    //    //    }
    //    //}

    //}
}